﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KhaoSatSinhVienTotNghiep.Model
{
   public partial class Lop
    {
       private static KhaoSatSVTNDataContext context = new KhaoSatSVTNDataContext();

       public static List<Lop> GetAll()
       {
           return context.Lops.ToList();
       }
       public static List<Lop> GetByMaKhoa(int makhoa)
       {
           var result=from l in context.Lops where l.MaKhoa == makhoa select l;
           return result.ToList();
       }
    }
}
